<!--左侧功能菜单-->
<#if !current?exists>
	<#assign current=''>
</#if>
<div class="sideBar" id="sideBar">
	<div class="catalogList">
		<ul id="menu">
		
		<#if auth_purview?? && auth_purview.hasChilds() >
           <#list auth_purview.childs as menuItemP>
           <#assign menuItem= menuItemP.model>
             <a class="nav-header nav-header-current"><b class="${menuItem.menuIcon}"></b>${menuItem.menuName}</a>
             <ul style="display: none;">
                <#if menuItemP?? && menuItemP.hasChilds()>
	                <#list menuItemP.childs as sonItemP>
	                <#assign sonItem= sonItemP.model>
		              <#if current!='' && current==sonItem.menuFlag>  
		                  <li class="selected" > 
		              <#else>
		                  <li class="subCatalogList" > 
		              </#if> 
		                  <#if !(sonItem.menuHref?starts_with('http'))>
		                     <a href="${basePath}/${sonItem.menuHref}">${sonItem.menuName}</a>
		                  <#else>
		                      <a href="${sonItem.menuHref?replace('{{wxid}}',session_wx.wxid)}" target="_blank">${sonItem.menuName}</a>
		                  </#if>
	                  <#if sonItem.newFlag==1><span class="new"></span></#if> 
	                  </li>
	              </#list>
              </#if>
            </ul>
            </#list>
       </#if>
		</ul>
	</div>
</div>
<script type="text/javascript">	
$(document).ready(function(){
	$(".nav-header").mouseover(function(){
		$(this).addClass('navHover');
	}).mouseout(function(){
		$(this).removeClass('navHover');
	}).click(function(){
		$(this).toggleClass('nav-header-current').next().slideToggle();
	});
	$("#menu li[class='selected']").parent("ul").css("display","block")
});
</script>